package io;

import java.io.File;
import java.io.IOException;

public class demoIO3 {
    public static void main(String[] args) throws IOException {
        File f = new File("hhh.txt");
        System.out.println(f.exists());
        System.out.println(f.createNewFile());
        System.out.println(f.exists());
       // System.out.println(f.delete());
        f.deleteOnExit();   //程序运行结束才删除  所以是true
        System.out.println(f.exists());
    }
}
